/**
 * 
 */
package me.myachievements.web.account;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.CompoundPropertyModel;

import me.myachievements.persistence.account.Account;

/**
 * @author besseym
 *
 */
public class CreateAccountForm extends AccountForm {

	/**
	 * @param id
	 */
	public CreateAccountForm(String id, String legend) {
		super(id, legend, new CompoundPropertyModel<Account>(new Account()));
	}
	
	@Override
	protected void onSubmit(){
		Account account = this.getModelObject();
		accountPersistenceManager.create(account);
	}

}
